#ifdef KITSCHY_DEBUG_MEMORY 
#include "debug_memorymanager.h"
#endif

#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "math.h"

#include "BList.h"
#include "BVector.h"
#include "geometrics.h"
#include "quaternion.h"
#include "symbol.h"
#include "sort.h"
#include "ontology.h"
#include "featureterm.h"
#include "FTKBase.h"

#include "AWLocalViewport.h"

#include "AWEntity.h"
#include "AWMessage.h"
#include "AWScenario.h"
#include "AWBody.h"
#include "AWSensor.h"
#include "AWBrain.h"
#include "AWAgent.h"
#include "AWWorld.h"

#include "loader.h"


AW_Brain::AW_Brain(Ontology *O,FTKBase *Memory) : AW_Entity() {
	m_ontology=O;
	m_memory=Memory;
	class_name->set("AW_Brain");
} /* AW_Brain::AW_Brain */ 


AW_Brain::AW_Brain(FILE *fp,Ontology *O,FTKBase *Memory)
{
	m_ontology=O;
	m_memory=Memory;
	class_name->set("AW_Brain");
	load(fp);
} /* AW_Brain::AW_Brain */ 


AW_Brain::~AW_Brain() 
{
	m_ontology=0;
	m_memory=0;
} /* AW_Brain::~AW_Brain */ 


void AW_Brain::actualize(float ,float ,List<AW_Message> *message_queue,
						 Symbol *,
						 List<FeatureTerm> *,						
						 List<FeatureTerm> *,List<FeatureTerm> *)
{
	message_queue->Delete();
} /* AW_Brain::actualize */ 


bool AW_Brain::is_a(char *c)
{
	if (strcmp(c,"AW_Brain")==0) return true;

	return AW_Entity::is_a(c);
} /* AW_Brain::is_a */ 


bool AW_Brain::is_a(Symbol *c)
{
	if (c->cmp("AW_Brain")) return true;

	return AW_Entity::is_a(c);
} /* AW_Brain::is_a */ 
